<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;" name="viewport" />
<!--<meta name="viewport" content="target-densitydpi=device-dpi, width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0"/>-->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>贷你盈新年定制贺卡</title>
<link rel="stylesheet" href="__PUBLIC__/Special/Css/Monkey/monkey.css" />
<link rel="stylesheet" type="text/css" href="__PUBLIC__/Special/Css/Monkey/component.css" />
<style type="text/css">
	
</style>
	<script src=" https://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
	<script type="text/javascript">
		wx.config({
			debug: false,//这里是开启测试，如果设置为true，则打开每个步骤，都会有提示，是否成功或者失败
			appId: 'wx56b3166a3ae04149', // 必填，公众号的唯一标识
			timestamp: "{$weixin['time']}", // 必填，生成签名的时间戳
			nonceStr: "{$weixin['noncestr']}", // 必填，生成签名的随机串
			signature: "{$weixin['signature']}",// 必填，签名，见附录1
			jsApiList: [
				// 所有要调用的 API 都要加到这个列表中
				'onMenuShareTimeline',
				'onMenuShareAppMessage'
			]
		});
		wx.ready(function () {
			wx.onMenuShareTimeline({
				title: "有人@你，新春到福气到！", // 分享标题
				link: "https://www.dadijinrong.com/Special/imgsc1", // 分享链接
				imgUrl: "https://www.dadijinrong.com/Public/Special/Img/Monkey/monky.png", // 分享图标
				success: function () {
					// 用户确认分享后执行的回调函数
					//window.location.href="http://{$url}/lashou/invitefriends_success/code/{$m_id}/cct_id/{$cct_id}";
				},
				cancel: function () {
					// 用户取消分享后执行的回调函数
					alert('取消分享')
				}
			});
			wx.onMenuShareAppMessage({
				title: "有人@你，新春到福气到！", // 分享标题
				desc: "好友为您制作的福气贺卡来啦！打开福气卡，财源滚滚来", // 分享描述
				link: "https://www.dadijinrong.com/Special/imgsc1", // 分享链接
				imgUrl: "https://www.dadijinrong.com/Public/Special/Img/Monkey/monky.png", // 分享图标
				type: 'link', // 分享类型,music、video或link，不填默认为link
				dataUrl: '', // 如果type是music或video，则要提供数据链接，默认为空
				success: function () {
					// 用户确认分享后执行的回调函数
					//window.location.href="http://{$url}/lashou/invitefriends_success";
				},
				cancel: function () {
					// 用户取消分享后执行的回调函数
				}
			});

		});
	</script>
</head>
<body class="body1">

	<div class="anuz">
		<a href="{:U('Appdownload/download',array('monkeyd'=>'mkd'))}"><img style="position: absolute;bottom: 0;left: 0;" width="25.3%" src="__PUBLIC__/Special/Img/Monkey/s01.png" alt="" /></a>
		<if condition="$flag eq ''">
			<a href="{:U('Special/imgsc')}"><img width="30.6%" style="margin: 0 auto;display: block;" src="__PUBLIC__/Special/Img/Monkey/s03.png" alt="" /></a>
		<else />
			<a href="{:U('Special/imgsc2',array('sharecontent'=>$sharecontent,'shareimage'=>$shareimg,'flag'=>$flag))}"><img width="30.6%" style="margin: 0 auto;display: block;" src="__PUBLIC__/Special/Img/Monkey/s04.png" alt="" /></a>
		</if>

		<!--
			__PUBLIC__/Special/Img/Monkey/s03.png   //点击送祝福
			__PUBLIC__/Special/Img/Monkey/s04.png   //收下祝福
		-->
		<a href="{:U('Appdownload/download',array('monkeyd'=>'mkd'))}"><img style="position: absolute;bottom: 0;right: 0;" width="25.3%" src="__PUBLIC__/Special/Img/Monkey/s02.png" alt="" /></a>
	</div>
	
</body>
</html>
